<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            list-style: none;
        }
        .wrap{
            margin: 100px auto 0;
            width: 1000px;
            height: 475px;
        }
        .tab{
            border: 1px solid #ddd;
            border-bottom: 0;
            height: 36px;
            width: 320px;
        }
        .tab li{
            position: relative;
            width: 80px;
            line-height: 34px;
            text-align: center;
            border-top: 4px solid #fff;
            float: left;
            cursor: pointer;
        }
        .tab li>span{
            position: absolute;
            right: 0;
            font-size: 14px;
            color: #ddd;
        }
        .tab .curTab{
            border-color: red;
        }
        .wrap .contentBox{
            width: 100%;
            height: 476px;
            border: 1px solid #ddd;
        }
        .contentBox .box{
            width: 100%;
            height: 100%;
            display: none;
            text-align: left;
            overflow: hidden;
        }
        .contentBox .box.selected{
            display: block;
        }
    </style>
</head>
<body>
<div class="wrap">
    <ul class="tab">
        <li class="curTab">国际大牌<span>|</span></li>
        <li>果庄名牌<span>|</span></li>
        <li>警戒用品<span>|</span></li>
        <li>男士精品</li>
    </ul>
    <div class="contentBox">
        <div class="box selected">1i</div>
        <div class="box">2i</div>
        <div class="box">3i</div>
        <div class="box">4i</div>
    </div>
</div>
<script src="../jquery-1.12.4.js"></script>
<script>
    $(function () {
       $(".tab>li").mouseenter(function () {
           $(this).addClass("curTab").siblings("li").removeClass("curTab");
           var index = $(this).index();
           $(".wrap .contentBox .box").eq(index).addClass("selected").siblings().removeClass("selected");
       });
    });
</script>
</body>
</html>